package org.jeecg.modules.water.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 阀控记录
 * @Author: jeecg-boot
 * @Date:   2024-03-11
 * @Version: V1.0
 */
@Data
@TableName("lwgy_joint_water_cmd")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="lwgy_joint_water_cmd对象", description="阀控记录")
public class LwgyJointWaterCmd implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**请求日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "请求日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**表具通讯码*/
	@Excel(name = "表具通讯码", width = 15)
    @ApiModelProperty(value = "表具通讯码")
    private String ispid;
	/**开关阀*/
	@Excel(name = "开关阀", width = 15, dicCode = "water_type")
	@Dict(dicCode = "water_type")
    @ApiModelProperty(value = "开关阀")
    private String type;
	/**开关状态*/
	@Excel(name = "开关状态", width = 15, dicCode = "operational_state")
	@Dict(dicCode = "operational_state")
    @ApiModelProperty(value = "开关状态")
    private String operationalState;

    /**校区*/
    @TableField(exist = false)
    private String campusId;
    /**楼宇Id*/
    @TableField(exist = false)
    private String buildingId;
    /**单元Id*/
    @TableField(exist = false)
    private String unitId;
    /**楼层Id*/
    @TableField(exist = false)
    private String layerId;
    /**房间Id*/
    @TableField(exist = false)
    private String roomId;
    /**校区名称*/
    @Excel(name = "校区", width = 15)
    @TableField(exist = false)
    private String campusName;
    /**楼宇名称*/
    @Excel(name = "楼宇", width = 15)
    @TableField(exist = false)
    private String buildingName;
    /**单元名称*/
    @TableField(exist = false)
    private String unitName;
    /**楼层名称*/
    @Excel(name = "楼层", width = 15)
    @TableField(exist = false)
    private String layerName;
    /**房间名称*/
    @Excel(name = "房间", width = 15)
    @TableField(exist = false)
    private String roomName;
    @TableField(exist = false)
    private String selectType;
}
